import { axios } from '@/utils/request'
export function teacherList(params) {
    return axios({
      url: '/school/teachers',
      method: 'post',
      data: params
    })
  }


  export function teacherCreate(params) {
    return axios({
      url: '/school/teachers/create',
      method: 'post',
      data: params
    })
  }

  export function changeTeacherType(params, id) {
    return axios({
      url: '/school/teachers/' + id + '/enable-status',
      method: 'post',
      data: params
    })
  }
  export function teacherEdit(params, id) {
    return axios({
      url: '/school/teachers/' + id + '/update',
      method: 'post',
      data: params
    })
  }
  export function teacherInfo(id) {
    return axios({
      url: '/school/teachers/' + id,
      method: 'post',
    })
  }
  export async function havingClass(id) {
    return await axios({
      url: '/school/teachers/'+id+'/is-to-class',
      method: 'post',
    })
  }
  // 
  